package com.example.micrdataservice.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
/**
 * @description: swagger配置
 * @author: uu
 * @date: 2024/3/7 0:03
 * @version: 1.0
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI docket(){

        return new OpenAPI().info(new Info()
                .title("购物商城")
                .version("1.0")
                .description("前后端分离项目，前端Vue + pinia，后端SpringBoot + SpringCloudAlibaba + Redis")
                .contact(new Contact().name("成名山").email("2946087337@qq.com").url("http://localhost:8000/api/v1/plat/info"))
                .license(new License().name("Apache 2.0")));
    }
}
